import Vue from "vue";
import VueRouter from './avue-router.js'

Vue.use(VueRouter)

export  default new VueRouter({
  routes:[
    {
      path:'/',
      component:()=>import('../views/Home')
    },
    {
      path:'/a',
      component:()=>import('../views/A'),
      children:[
        {
          path:'/a/b',
          component:()=>import('../views/B')
        }
      ]
    }
  ]
})
